<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索</title>
    <link rel="stylesheet" type="text/css" href="css/search.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/search.js"></script>
    <script>
        function Jump(users,comment_id){
            location.href="${pageContext.request.contextPath}/detailsListServlet?id="+users+"&comment_id="+comment_id;
        }
    </script>
</head>
<body>
<div class="max">
   <%@include file="head.jsp"%>

    <!-- 火爆热销商品 -->

    <div class="home-shagp">
        <ul>
            <c:if test="${sessionScope.goodsList==null||sessionScope.goodsList=='[]'}">
                <div style="width: 156px;height: 85px;margin-left: 570px">
                    <img style="width: 100%;height: 100%" src="img/meiyou.png">
                </div>
                <div style="width: 100%;height: 80px;">
                    <div style="width: 80%;height: 80px;margin: 40px auto;font-size: 15px;text-align: center;color: #666">搜不到您想要的商品~</div>
                </div>
            </c:if>
            <c:if test="${sessionScope.goodsList!=null||sessionScope.goodsList!='[]'}">
                <c:forEach items="${sessionScope.goodsList}" var="sp" varStatus="s">
                    <li onclick="Jump(${sp.shopId},${sp.comment_id})">
                        <img class="home-img" style="width: 250px;height: 250px" src="${sp.home}" alt="">
                        <div class="home-yang">${sp.name}</div>
                        <div class="home-huobajia">
                            <ol>
                                <li>￥ ${sp.price}</li>
                            </ol>
                        </div>
                    </li>
                </c:forEach>
            </c:if>
        </ul>
    </div>



    <div class="home-weibu">
        <div class="home-weibu1">
            <div class="home-weibu7"></div>
            <ul>
                <li><img src="img/尾部1.png" alt=""></li>
                <li>
                    <div class="zitiyang">自营正品</div>
                    <div class="kaixiang">正品保障 假一赔三</div>
                </li>
                <li>
                    <img src="img/尾部2.png" alt="">

                </li>
                <li>
                    <div class="zitiyang">自营正品</div>
                    <div class="kaixiang">不限品类 满88免邮</div>
                </li>
                <li><img src="img/尾部3.png" alt=""></li>
                <li>
                    <div class="zitiyang">闪电发货</div>
                    <div class="kaixiang">极速发货 航空直达</div>
                </li>
                <li>
                    <img src="img/尾部4.png" alt="">
                </li>
                <li>
                    <div class="zitiyang">售后保障</div>
                    <div class="kaixiang">开箱验货 30天退换</div>
                </li>
            </ul>
        </div>

        <div class="home-weibu2">
            <ul>
                <li>
                    <div class="home-haoma">400-6699-840</div>
                    <div>
                        <ol>
                            <li>周一到周日</li>
                            <li>09.00-22.00</li>
                        </ol>
                    </div>
                    <div>
                        <ol>
                            <li>关注我们</li>
                            <li><img src="img/尾部5.png"></li>
                            <li><img src="img/尾部6.png"></li>
                            <li><img src="img/尾部7.png"></li>
                        </ol></div>
                </li>
                <li>
                    <div class="home-xiangtong">
                        <div>正品保障</div>
                        <div>30天无忧退换</div>
                        <div>消费者告知书</div>
                        <div>真假辨别</div>
                        <div>假货报道</div>
                        <div>正品保障</div>
                    </div>
                </li>
                <li>
                    <div class="home-xiangtong">
                        <div>新手指南</div>
                        <div>购物流程</div>
                        <div>会员级别</div>
                        <div>支付方式</div>
                        <div>回头币</div>
                        <div>评价晒单</div>
                    </div>
                </li>
                <li>
                    <div class="home-xiangtong">
                        <div>配送方式</div>
                        <div>物流查询</div>
                        <div>配送说明</div>
                        <div>防骗警示</div>
                        <div>配送时效</div>
                        <div>验货签收</div>
                    </div>
                </li>
                <li>
                    <div class="home-xiangtong">
                        <div>售后服务</div>
                        <div>退货运费</div>
                        <div>退货流程</div>
                        <div>退货政策</div>
                        <div>投诉建议</div>
                        <div>联系客服</div>
                    </div>
                </li>
                <li>
                    <div class="home-xiangtong">
                        <div>常见问题</div>
                        <div>账户问题</div>
                        <div>售后问题</div>
                        <div>配送问题</div>
                        <div>支付问题</div>
                        <div>常见问题</div>
                    </div>
                </li>
                <li>
                    <div class="home-erwei">
                        <img src="img/二维码.jpg" alt="">
                        <div>微信公众号</div>
                    </div>
                </li>
                <li>
                    <div class="home-erwei">
                        <img src="img/二维码.jpg" alt="">
                        <div>客服微信号</div>
                    </div>
                </li>
            </ul>
        </div>

    </div>
    <!-- 尾部 -->
    <div class="yang">
        <div class="yang-shi"></div>
        <ul>
            <li>网站简介</li>
            <li>联系我们</li>
            <li>招商合作</li>
            <li>用户协议</li>
            <li>隐私政策</li>
            <li>投诉建议</li>
        </ul>

        <p>Copyright 2012 - 2021 www.huitouyu.com. All rights reserved. 回头鱼商城版权所有</p>

        <div class="pao">
            <div class="pei"><img src="img/yin.png" alt=""></div>
            <div class="pei11"><img src="img/zhi.png" alt=""></div>
            <div class="pei11"><img src="img/wang.png" alt=""></div>
            <div class="pei11"><img src="img/zhong.png" alt=""></div>
            <div class="pei11"><img src="img/360.png" alt=""></div>
        </div>
    </div>
</div>
</body>
</html>
